package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.sys.SysUserDto;
import com.atguigu.spzx.model.entity.sys.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserMapper {
    SysUser findSysUserByUsername(String userName);

    List<SysUser> findPageByCondition(SysUserDto sysUserDto);

    void deleteById(Long id);

    SysUser findById(Long id);

    void updateById( SysUser sysUser);

    int selectCountByUsername(String username);

    void save(SysUser sysUser);
}
